#include <stdio.h>
#include <unistd.h>
extern char *optarg;
extern int optind, opterr, optopt;
int main(int argc, const char *argv[])
{
    char inputstr[36] = {0};
    scanf("%s", inputstr);
    while (getopt(argc, argv, inputstr)!=-1) {
        printf("%s\n", optarg);
    }
    return 0;
}
